<?php

$this->breadcrumbs = array(
	Setting::label(2),
	Yii::t('app', 'Index'),
);

$this->menu = array(
	array('label'=>Yii::t('app', 'Create') . ' ' . Setting::label(), 'url' => array('create'), 'visible'=>!Yii::app()->user->isGuest ),
	array('label'=>Yii::t('app', 'Manage') . ' ' . Setting::label(2), 'url' => array('admin'), 'visible'=>!Yii::app()->user->isGuest ),
// Or with more advanced security:
//	array('label'=>Yii::t('app', 'Create') . ' ' . Setting::label(), 'url' => array('create'), 'visible' => Yii::app()->user->checkAccess('SettingCreate') ),
//	array('label'=>Yii::t('app', 'Manage') . ' ' . Setting::label(2), 'url' => array('admin'), 'visible' => Yii::app()->user->checkAccess('SettingAdmin') ),
);
$this->layout = '//layouts/column1';
?>

<h1 class="subheader"><?php echo GxHtml::encode(Setting::label(2)); ?></h1>

<?php // Uncomment the following to secure access: 
// if (!Yii::app()->user->checkAccess('SettingIndex')) { echo 'Access Denied'; die; } ?>

<?php $AttribLabels = Setting::attributeLabels(); 
?>
<div class="row view headers">
	<div class="small-1 columns">
		<label>
			<?php echo GxHtml::encode($AttribLabels['id']); ?>		</label>
	</div>

	<div class="small-2 columns">
		<label>
	<?php echo GxHtml::encode($AttribLabels['name']); ?>		</label>
	</div>
	<div class="small-2 columns">
		<label>
	<?php echo GxHtml::encode($AttribLabels['value']); ?>		</label>
	</div>
	<div class="small-2 columns">
		<label>
	<?php echo GxHtml::encode($AttribLabels['group']); ?>		</label>
	</div>
	<div class="small-2 columns">
		<label>
	<?php echo GxHtml::encode($AttribLabels['datatype']); ?>		</label>
	</div>
	<div class="small-2 columns">
		<label>
	<?php echo GxHtml::encode($AttribLabels['updated_at']); ?>		</label>
	</div>
	<div class="small-1 columns">
		<br/>
	</div>
</div>


<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
	'tagName'=>'div',
	'itemsTagName'=>'div',
	'itemsCssClass'=>'items',
	'summaryCssClass'=>'summary subheader',
)); 